package com.multiplayer.entity;

import java.util.Date;

/**
 * 评论实体类对应comments表
 * @author zhangwenhao 0.0.1
 *@author liutiehui 0.0.2 2020-5-9
 */
public class Comments {
    //评论号
	private String Cno;
	//用户编号
	private String Userid;
	//评论内容
	private String Ccontent;
	//点赞数
	private Double Cstar;
	//评论时间
	private Date Ctime;
	//用户
	private User user;
	
	public Comments() {
		super();
	}
	
	public Comments(String cno, String userid, String ccontent, Double cstar, Date ctime) {
		super();
		Cno = cno;
		Userid = userid;
		Ccontent = ccontent;
		Cstar = cstar;
		Ctime = ctime;
	}

	public String getCno() {
		return Cno;
	}

	public void setCno(String cno) {
		Cno = cno;
	}

	public String getUserid() {
		return Userid;
	}

	public void setUserid(String userid) {
		Userid = userid;
	}

	public String getCcontent() {
		return Ccontent;
	}

	public void setCcontent(String ccontent) {
		Ccontent = ccontent;
	}

	public Double getCstar() {
		return Cstar;
	}

	public void setCstar(Double cstar) {
		Cstar = cstar;
	}

	public Date getCtime() {
		return Ctime;
	}

	public void setCtime(Date ctime) {
		Ctime = ctime;
	}
	
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String toString() {
		return "Comments [Cno=" + Cno + ", Userid=" + Userid + ", Ccontent=" + Ccontent + ", Cstar=" + Cstar
				+ ", Ctime=" + Ctime + "]";
	}
	
	
	
}
